﻿using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;

namespace Nop.Plugin.Payments.WalletOne
{
    public partial class RouteProvider : IRouteProvider
    {
        public void RegisterRoutes(RouteCollection routes)
        {
			routes.MapRoute("Plugin.Payments.WalletOne.Configure",
				 "Plugins/PaymentWalletOne/Configure",
				 new { controller = "PaymentWalletOne", action = "Configure" },
				 new[] { "Nop.Plugin.Payments.WalletOne.Controllers" }
            );

			routes.MapRoute("Plugin.Payments.WalletOne.PaymentInfo",
				 "Plugins/PaymentWalletOne/PaymentInfo",
				 new { controller = "PaymentWalletOne", action = "PaymentInfo" },
				 new[] { "Nop.Plugin.Payments.WalletOne.Controllers" }
            );

            //Return
			routes.MapRoute("Plugin.Payments.WalletOne.Return",
				 "Plugins/PaymentWalletOne/Return",
				 new { controller = "PaymentWalletOne", action = "Return" },
				 new[] { "Nop.Plugin.Payments.WalletOne.Controllers" }
            );
        }
        public int Priority
        {
            get
            {
                return 0;
            }
        }
    }
}
